package com.lh.mapper;

import com.lh.my.mapper.MyMapper;
import com.lh.pojo.Category;
import com.lh.pojo.vo.CategoryVO;
import com.lh.pojo.vo.ItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CategoryExtMapper extends MyMapper<Category> {

    /**
     * 获取子级分类
     * @param rootCatId
     * @return
     */
    List<CategoryVO> getSubCategory(@Param("rootCatId") Integer rootCatId);

    /**
     * 获取最新的六个商品
     * @param map
     * @return
     */
    List<ItemVO> getSixNewItems(@Param("map") Map<String, Integer> map);
}